package com.wsm.springcloud_compose.compose_user_produce.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wsm.springcloud_compose.compose_user_produce.domain.SysUsers;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @name: UserMapper
 * @Author: wangshimin
 * @Date: 2019/11/14  9:55
 * @Description:
 */
public interface UserMapper extends BaseMapper<SysUsers> {

    @Select(value = "select su.* from sys_users su where su.username=#{userName}")
    SysUsers loginUser(@Param("userName") String userName);
}
